controllers
  .controller('TabsCtrl', function($scope, $rootScope, $state) {
    $rootScope.$on('$ionicView.beforeEnter', function() {
      var statename = $state.current.name;
//tabs中存在的主页面不需要隐藏，hidetabs=false
      console.log(statename)
      if(statename === 'tab.home'
        || statename ==='tab.category'
        ||statename ==='tab.cart'
        ||statename ==='tab.account'){
        $rootScope.hideTabs = false;
      }else{
        $rootScope.hideTabs = true;
      }
    });
  });
